import { getEditorProps, getGridEditorCommonProps } from './common';

/**
 * 获取MARKDOWN的props
 *
 * @export
 * @template C
 * @return {*} 
 */
export function getMarkDownProps<C>() {
  return {
    ...getEditorProps<C>(),
    data: { type: Object, required: false },
    controller: { type: Object, required: false },
    disabled: {
      type: Boolean,
      required: false,
    },
  };
}

/**
 * 获取表格MARKDOWN的props
 *
 * @export
 * @template C
 * @return {*} 
 */
export function getGridMarkDownProps<C>() {
  return { ...getMarkDownProps<C>(), ...getGridEditorCommonProps() };
}
